<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
    <title>请对 ${param.name!=null?param.name:'姓名'} 会员信息进行编辑</title>
<link href="CSS/EditUser.css" rel="stylesheet">
</head>
<body>
<h1 style="text-align: center">会员信息编辑系统</h1>
<form action="EditUserServlet" method="POST">
    <table style="margin: 10px;border-collapse: collapse; border: none">
        <tr>
            <td>会员ID:</td>
            <td>
                <input type="text" id="id" name="id" style="display: none" value="${param.id}">
                <input type="text" id="id2" name="id2" placeholder="ID由系统自动分配 此项无法修改" readonly>
            </td>
        </tr>
        <tr>
            <td>姓名:</td>
            <td>
                <input type="text" id="userName" name="userName"
                       placeholder="${param.name != null ? param.name : '姓名'}">
            </td>
        </tr>
        <tr>
            <td>手机号:</td>
            <td>
                <input type="text" id="phoneNumber" name="phoneNumber"
                       placeholder="${param.phoneNumber != null ? param.phoneNumber : '手机号'}">
            </td>
        </tr>
        <tr>
            <td>密码:</td>
            <td>
                <input type="password" id="password" name="password"
                       placeholder="${param.password != null ? param.password : '密码'}">
            </td>
        </tr>
        <tr>
            <td colspan="2" style="border:none;text-align: center">
                <div style="display: flex;justify-content: center;gap: 50px">
                    <button type="submit"><b>保存</b></button>
                    <button type="reset"><b>清空</b></button>
                </div>
            </td>
        </tr>
    </table>
</form>
</body>
<script>
    window.opener.location.reload()
</script>
</html>